﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using ComponentFactory.Krypton.Toolkit;

using IT_Tracker.ENTIDADES;

namespace IT_Tracker
{
    public partial class FormMain : KryptonForm
    {   
        Form_Log formlog = new Form_Log();
        Usuario sessionuser = new Usuario();
        
        public FormMain()
        {   
                InitializeComponent();                             
        }

        private void rbutton_Ticket_Click(object sender, EventArgs e)
        {
            Form_Ticket formticket = new Form_Ticket(sessionuser);
            formticket.ShowDialog();
            
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            if (formlog.ShowDialog() == DialogResult.OK)
            {                
                this.sessionuser = formlog.sessionuser;
            }

            else
            {
                Application.Exit();
            }

        }

        private void rbutton_ContaTel_Click(object sender, EventArgs e)
        {
            Form_ContasTelefonia formContTelefonia = new Form_ContasTelefonia(sessionuser);
            formContTelefonia.ShowDialog();
        }

        private void rbutton_EstOlos_Click(object sender, EventArgs e)
        {
            Form_EstOlos formEstatisticaOlos = new Form_EstOlos(sessionuser);
            formEstatisticaOlos.ShowDialog();

        }
    }
}
